<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
  <head>
    <title>码表管理</title>
    <%@ include file="/WEB-INF/include/include.jsp"%>
    <script type="text/javascript" src="<%=path%>/js/sysmgr/code/code.js"></script>
  </head>
  <body>
    <div class="listpage-locked-content">
      <h2 class="listpage-lk-title">码表管理</h2>
      <div class="listpage-lk-tbar" id="cbarWrap"></div>
      <div class="listpage-lk-search" id="searchWrap"></div>
    </div>
    <div class="ltrgpage-content" id="pagecontent"></div>
    
    <ui:page>
      <ui:b_toolbar menuCode="menuCode" id="categoryMenuList" renderTo="cbarWrap">
      </ui:b_toolbar>

      <ui:quicksearch handler="Code.quickSearch" scope="Code" renderTo="searchWrap"></ui:quicksearch>

      <ui:panel layout="border" renderTo="pagecontent" width="1000" height="460">
        <x:items>
          <ui:tree id="catalogTree" datasetName="CodeDataSet" width="200" title="码表类型" handlerName="CodeQueryHandler"
            config="true" handlerMethod="getCodeCatalog" conditions="[{fieldName:'codeType',value:'CODE_CATALOG'}]" autoLoad="true">
            <x:attr name="region" type="string">west</x:attr>
            <x:listeners>
              <x:handler name="itemclick" funcName="Code.treeItemclick"></x:handler>
            </x:listeners>
          </ui:tree>
         
            <ui:grid id="codeGrid" height="200" datasetName="code_dataset" autoLoad="false" handlerName="CodeQueryHandler" 
              fields="['ID','CODE','CODE_TEXT','CODE_ORDER']" showCheckbox="true" >
              <x:attr name="region" type="string">center</x:attr>
              <x:columns>
                <ui:gridcolumn hidden="true" dataIndex="ID" text="ID" />
                <ui:gridcolumn width="200" dataIndex="CODE" text="编码" />
                <ui:gridcolumn width="280" dataIndex="CODE_TEXT" text="名称" />
                <ui:gridcolumn width="100" dataIndex="CODE_ORDER" text="排序" />
              </x:columns>
            </ui:grid>

        </x:items>
      </ui:panel>
      <x:bottomScript>
			Code.loadCurrent();
	  </x:bottomScript>
    </ui:page>
  </body>
</html>